import React from 'react';
import PrintItem from './../PrintItem';

const App = (props,) => {
  const { formItemProps, initialValue, inputProps } = props;

  return (
    <PrintItem
      labelStyle={inputProps?.titleFont ? { fontSize: inputProps.titleFont + 'px' } : {}}
      textStyle={inputProps?.contentFont ? {
        fontSize: inputProps.contentFont + 'px', display: 'flex',
        alignItems: 'center'
      } : {}}
      style={formItemProps?.style || {}}
      label={localStorage.i18nextLng === 'en' ? formItemProps?.labelEn : formItemProps?.label}>
      {initialValue || props.inputProps?.initialValue}
    </PrintItem>
  );
};

export default App;